﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using mBlog.Core.Models;


namespace mBlog.Core.Services
{
    public interface ICategoryService
    {
        Category Single(int id);
        Category Single(string urlName);

        void Add(Category category);
        void Update(Category category);
        void Delete(int categoryId);

        IList<Category> Get();
        //IList<Category> Get(int? page, int itemsPerPage);
        int Count();
        int GetPostTotalUnderCategory(string categoryUrlName);
    }
}
